local app = require 'app'
local game = app.game.running

local shortcut = game.ui.element()

function shortcut:ctor(ingame)
    self.res = "club.threecard.doudizhu/ui/ingame.b:shortcut"
    self.ingame = ingame
end

function shortcut:on_injected(bind)
    bind('button.click', self.btn, self.click_ivk)
end

function shortcut:click_ivk()
    local seat = self.ingame.seats[1]
    if not seat then
        return
    end

    seat.poker_container:unselect_all()
end

return shortcut